home *** CD-ROM | disk | FTP | other *** search
INSTALL Professional project | 1996-06-09 | 7.7 KB | 246 lines |
- /*
- * INSTALL.DAT
- * Project: Guide to the Galaxy
- * Version: 1.00
- */
-
- @DefineProject
- @Name = "Guide to the Galaxy"
- @Version = "1.00"
- @Subdir = "\\GALAXY"
- @OutDrive = Z
- @EndProject
-
- @DefineVars
- @Qstring @PkgType = "BOX"
- @Integer @Blue = @RGB(0,0,255) //DEFINE COLOR BLUE
- @Integer @Black = @RGB(0,0,0) //DEFINE COLOR BLACK
-
- @EndVars
-
-
-
-
- @BackgroundMode(3,@Blue,@Black)
- @Display
- @Cls
-
- Congratulations on your purchase of @Name!
-
- This program will now install @Name
- to your hard disk drive and verify the integrity
- of the CD-ROM disk. You may press the [Esc] key
- at any time to abort the installation.
- @Pause
- @EndDisplay
- @PkgType = @GetINI("COSMI CDSETUP", "PkgMethod")
- @GetOutDrive
- @Cls
- Select the HARD disk drive on which you wish to install your
- new copy of @Name.
- ie. "Drive C:"
-
-
-
-
-
-
-
-
-
-
- @Suppress(0, 1)
- Use the [CURSOR] to highlight a drive letter. Press [ENTER]
- to select that drive.
-
-
- @EndOutDrive
-
-
- @GetSubdir
- @Cls
- INSTALL is now suggesting a name for a program destination subdirectory
- to which files will be copied. Press [ENTER] to use @OutDrive:@SubDir,
- or type "\" and a "path", where "path" is the subdirectory you want INSTALL
- to use.
-
-
- @Prompt = "Which subdirectory ([Enter] = @Subdir) ?"
- @EndSubdir
-
- @DefineVars
- @Qstring @Item1 = "@OutDrive:\\@Subdir\\galaxy.exe, Galaxy ,
- @OutDrive:\\@Subdir\\galaxy.exe"
- @Qstring @Item2 = "@OutDrive:\\@Subdir\\galaxy.hlp, Galaxy Help,
- @OutDrive:\\@Subdir\\galaxy.hlp"
- @Qstring @Item3 = "@OutDrive:\\@Subdir\\galaxman.wri, Galaxy Manual,
- @OutDrive:\\@Subdir\\galaxman.wri"
- @Qstring @Item4 = "@OutDrive:\\@Subdir\\meteor.wri, Meteor Storm Manual,
- @OutDrive:\\@Subdir\\meteor.wri"
- @Qstring @Item5 = "@OutDrive:\\@Subdir\\meteor.exe, Meteor Storm,
- @OutDrive:\\@Subdir\\meteor.exe"
- @EndVars
-
- @DefineDisk
- @Label = "GALAXY Disk #1"
- @BeginLib 772.001
- @F GALAXY.EXE @S 400697 @O GALAXY.EXE
- @F CITY.LST @S 13032 @O CITY.LST
- @F CONSTELL.LST @S 1015 @O CONSTELL.LST
- @F MESSIER.LST @S 1223 @O MESSIER.LST
- @F SOLAR.LST @S 94 @O SOLAR.LST
- @F STAR.LST @S 2924 @O STAR.LST
- @F CONLINE.DAT @S 2784 @O CONLINE.DAT
- @F CONLOC.DAT @S 352 @O CONLOC.DAT
- @F MES.DAT @S 660 @O MES.DAT
- @F STAR.DAT @S 72376 @O STAR.DAT
- @F ZIP.DAT @S 6000 @O ZIP.DAT
- @F LUNAR.LST @S 487 @O LUNAR.LST
- @F ECLIP.DAT @S 194 @O ECLIP.DAT
- @F LUNAR.DAT @S 1040 @O LUNAR.DAT
- @F SUN.DIB @S 72048 @O SUN.DIB
- @F MER.DIB @S 65300 @O MER.DIB
- @F VEN.DIB @S 80172 @O VEN.DIB
- @F MAR.DIB @S 76876 @O MAR.DIB
- @F JUP.DIB @S 76682 @O JUP.DIB
- @F SAT.DIB @S 76644 @O SAT.DIB
- @F URA.DIB @S 76042 @O URA.DIB
- @F NEP.DIB @S 77644 @O NEP.DIB
- @F PLU.DIB @S 78606 @O PLU.DIB
- @F MOO.DIB @S 75774 @O MOO.DIB
- @F SUN.DAT @S 510 @O SUN.DAT
- @F MER.DAT @S 419 @O MER.DAT
- @F VEN.DAT @S 803 @O VEN.DAT
- @F MAR.DAT @S 693 @O MAR.DAT
- @F JUP.DAT @S 548 @O JUP.DAT
- @F SAT.DAT @S 537 @O SAT.DAT
- @F URA.DAT @S 560 @O URA.DAT
- @F NEP.DAT @S 590 @O NEP.DAT
- @F PLU.DAT @S 626 @O PLU.DAT
- @F MOO.DAT @S 635 @O MOO.DAT
- @F CITY.DAT @S 5370 @O CITY.DAT
- @F GALAXY.HLP @S 35858 @O GALAXY.HLP
- @F GRAND1.SKY @S 125 @O GRAND1.SKY
- @F GRAND2.SKY @S 125 @O GRAND2.SKY
- @F GRAND3.SKY @S 125 @O GRAND3.SKY
- @F GRAND4.SKY @S 126 @O GRAND4.SKY
- @F ECLIP91.SKY @S 121 @O ECLIP91.SKY
- @F MARRETRO.SKY @S 125 @O MARRETRO.SKY
-
- /* The lines in this comment block have been replaced by the lines
- following it by Ray Hogue
- =====================================================================================
- @F VBRUN300.DLL @S 398416 @O \WINDOWS\SYSTEM\VBRUN300.DLL
- @F CMDIALOG.VBX @S 18688 @O \WINDOWS\SYSTEM\CMDIALOG.VBX
- @F COMMDLG.DLL @S 97936 @O \WINDOWS\SYSTEM\COMMDLG.DLL
- @F SPIN.VBX @S 22528 @O \WINDOWS\SYSTEM\SPIN.VBX
- @F THREED.VBX @S 64544 @O \WINDOWS\SYSTEM\THREED.VBX
- =====================================================================================
- */
-
-
- /*-----------------------------------------------------------
- several system files which will be moved to windows\system
- later in this script.
- -----------------------------------------------------------*/
-
- @F VBRUN300.DLL @S 398416 @O VBRUN300.DLL
- @F CMDIALOG.VBX @S 18688 @O CMDIALOG.VBX
- @F COMMDLG.DLL @S 97936 @O COMMDLG.DLL
- @F SPIN.VBX @S 22528 @O SPIN.VBX
- @F THREED.VBX @S 64544 @O THREED.VBX
-
- @EndLib
-
- @EndDisk
-
- @Finish
- @Cls
-
- /*--------------------------------------------------------
- copy dlls and other sys files to the system dir ONLY
- if dated later than current dlls of the same name
- --------------------------------------------------------*/
-
- @If( @FileDate("@OutDrive:\\@Subdir\\VBRUN300.DLL")
- > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\VBRUN300.DLL") )
- @Copy("@OutDrive:\\@Subdir\\VBRUN300.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\VBRUN300.DLL")
- @EndIf
- @If( @FileDate("@OutDrive:\\@Subdir\\CMDIALOG.VBX")
- > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\CMDIALOG.VBX") )
- @Copy("@OutDrive:\\@Subdir\\CMDIALOG.VBX", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\CMDIALOG.VBX")
- @EndIf
- @If( @FileDate("@OutDrive:\\@Subdir\\COMMDLG.DLL")
- > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\COMMDLG.DLL") )
- //COMMDLG.DLL is used extensively by windows - copying this could cause probs if already in use
- @Copy("@OutDrive:\\@Subdir\\COMMDLG.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\COMMDLG.DLL")
- @EndIf
- @If( @FileDate("@OutDrive:\\@Subdir\\SPIN.VBX")
- > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\SPIN.VBX") )
- @Copy("@OutDrive:\\@Subdir\\SPIN.VBX", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\SPIN.VBX")
- @EndIf
- @If( @FileDate("@OutDrive:\\@Subdir\\THREED.VBX")
- > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\THREED.VBX") )
- //COMMDLG.DLL is used extensively by windows - copying this could cause probs if already in use
- @Copy("@OutDrive:\\@Subdir\\THREED.VBX", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\THREED.VBX")
- @EndIf
-
- @Copy("galaxman.wri", "@OutDrive:\\@Subdir\\*.*")
- @If("@PkgType" == "JEWEL")
- /*-----------------------------------------------------------
- create game dir and copy game files
- note that this should be done before creating the Windows group
- -------------------------------------------------------------*/
- @Copy("meteor.*", "@OutDrive:\\@Subdir\\*.*")
- @Copy("mssnd*.wav", "@OutDrive:\\@Subdir\\*.*")
-
- @ProgramManager("[CreateGroup(COSMI @Name)]
- [AddItem(@Item1, 0)][AddItem(@Item2, 0)]
- [AddItem(@Item3, 0)][AddItem(@Item4, 0)]
- [AddItem(@Item5, 0)]")
-
- /*===================================================================
- Change to the game dir and run (Spawn) the self extracting game file
- ====================================================================*/
- @Else
- @Copy("meteor.*", "@OutDrive:\\@Subdir\\*.*")
- @Copy("mssnd*.wav", "@OutDrive:\\@Subdir\\*.*")
-
- @ProgramManager("[CreateGroup(COSMI @Name)]
- [AddItem(@Item1, 0)][AddItem(@Item2, 0)]
- [AddItem(@Item3, 0)][AddItem(@Item4, 0)]
- [AddItem(@Item5, 0)]")
-
- @EndIf
- @ChDrive @OutDrive
- @ChDir "@SubDir"
- //delete files from cosmitmp.dir and remove that dir
- @Delete("@OutDrive:\\cosmitmp.dir\\*.*")
- @RmDir("@OutDrive:\\cosmitmp.dir")
-
- /*-----------------------------------------------------------
- Delete the DLL's and VBXs from app dir since they were
- already copied into \windows\system.
- -----------------------------------------------------------*/
-
- @Delete("VBRUN300.DLL")
- @Delete("CMDIALOG.VBX")
- @Delete("COMMDLG.DLL")
- @Delete("SPIN.VBX")
- @Delete("THREED.VBX")
-
- @Cls
- Installation of @Name is now finished.
- A New application group has been created titled COSMI.
-
-
-
-
-
-
-
- @Pause
- @EndFinish
-
- /* end-of-file */
-